﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Memberlist.aspx.cs" Inherits="Memberlist" Title="MyForum - Memberlist" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h3><strong>Memberlist</strong></h3>
			    
    <div class="contentarea">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="MemberlistGridView" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" 
                    DataSourceID="MemberlistObjectDataSource">
                    <Columns>
                        <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
                        <asp:BoundField DataField="Username" HeaderText="Username" 
                            SortExpression="Username" />
                        <asp:BoundField DataField="LastActivityDate" HeaderText="LastActivityDate" 
                            SortExpression="LastActivityDate" />
                    </Columns>
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    
    <asp:ObjectDataSource ID="MemberlistObjectDataSource" runat="server" 
        EnablePaging="True" OldValuesParameterFormatString="original_{0}" 
        SelectCountMethod="Count" SelectMethod="SelectAll" 
        SortParameterName="sortExpression" 
        TypeName="MyForum.Business.Controllers.UserController">
    </asp:ObjectDataSource>
</asp:Content>
